package com.paso.springbootsecurity.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Classname: LoginController
 * @Description:
 * @Date: 2021/2/22 0:32
 * @Created: by Wang Xu
 */
@RestController
public class LoginController {

    @RequestMapping(value = "/login-success")
    public String loginSuccess(){
        return "登录成功";
    }



    /**
     * 获取用户信息，资源2
     * @param
     * @return
     */
    @GetMapping(value = "/r/r1")
    public String r1(){
        return "访问资源r1";
    }

    /**
     * 获取用户信息，资源2
     * @param
     * @return
     */
    @GetMapping(value = "/r/r2")
    public String r2(){
        return "访问资源r2";
    }
}
